<div class="col-md-9 col-sm-12 col-xs-12" xmlns:th="http://www.thymeleaf.org">
    <div class="form-style-1 user-pro" action="#">
        <form class="user" id="user-form">
            <h4>01. 用户信息</h4>
            <div class="row">
                <div class="col-md-6 form-it">
                    <label>帐号(不可修改)</label><br>
                    <input type="hidden" name="id" th:value="${user.id}">
                    <input type="hidden" name="account" th:value="${user.account}">
                    <span style="color: white;" th:text="${user.account}">account</span>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6 form-it">
                    <label>昵称</label>
                    <input type="text" name="nickname" placeholder="nickname"
                           th:value="${user.nickname}" minlength="4">
                </div>
            </div>
            <div class="row">
                <div class="col-md-6 form-it">
                    <label>性别</label>
                    <select name="gender">
                        <option value="男" th:selected="${user.gender == '男'}">男</option>
                        <option value="女" th:selected="${user.gender == '女'}">女</option>
                    </select>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6 form-it">
                    <label>出生日期</label>
                    <input type="date" name="birthday" placeholder="birthday"
                           th:value="${user == null ? '2018-01-01': #dates.format(user.birthday,'yyyy-MM-dd')}">
                </div>
            </div>
            <div class="row">
                <div class="col-md-6 form-it">
                    <label>上次登录时间</label><br>
                    <label style="color: white" th:text="${user.lastLoginDate}">2018</label>
                </div>
            </div>

            <div class="row">
                <div class="col-md-6 form-it">
                    <label>用户权限:</label>
                    <span style="color: white;" th:text="${user.role.getName()}">普通用户</span>
                </div>
            </div>
            <div class="row">
                <div class="col-md-2">
                    <input class="submit" onclick="saveUser()" type="button" value="修改信息"/>
                </div>
            </div>
        </form>
        <form class="password" id="user-pwd-form">
            <input hidden="hidden" name="account" th:value="${user.account}">
            <h4>02. 修改密码</h4>
            <div class="row">
                <div class="col-md-6 form-it">
                    <label>旧密码</label>
                    <input type="password" id="oldPassword" placeholder="**********">
                </div>
            </div>
            <div class="row">
                <div class="col-md-6 form-it">
                    <label>新密码</label>
                    <input type="password" id="newPassword1" placeholder="***************">
                </div>
            </div>
            <div class="row">
                <div class="col-md-6 form-it">
                    <label>再次确认</label>
                    <input type="password" id="newPassword2" placeholder="*************** ">
                </div>
            </div>
            <div class="row">
                <div class="col-md-2">
                    <input class="submit" type="button" value="修改密码" onclick="changeUserPwd()">
                </div>
            </div>
        </form>
    </div>
</div>
